package com.nineclock.api.document.controller;

import com.nineclock.common.entity.PageResult;
import com.nineclock.common.entity.Result;
import com.nineclock.document.dto.DocFileDto;
import com.nineclock.document.dto.DocFileHistoryDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.List;

@Api("PC端文档管理接口")
public interface PCDocumentControllerApi {
    @ApiOperation("分页查询文档列表")
    public Result<PageResult<DocFileDto>> pagingFile(Integer page, Integer pageSize, String keyword);

    @ApiOperation("更改文档权限")
    public Result updateAuthority(Long fileId,Short permission);

    @ApiOperation("查询文件历史记录")
    public Result<List<DocFileHistoryDto>> queryFileHistory(Long fileId);
}
